#include <QtGui/QApplication>
#include <QtDeclarative>
#include "smsmetro.h"
#include "util.h"
#include "qmlapplicationviewer.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(createApplication(argc, argv));

    qmlRegisterType<SMSMetro>("com.rogerio.metro", 1, 0, "SMSMetro");
    qmlRegisterType<Util>("com.rogerio.metro", 1, 0, "Utilidade");

    QmlApplicationViewer viewer;
    viewer.setAttribute(Qt::WA_LockPortraitOrientation);
    viewer.addImportPath("qml/Componentes");    
    viewer.setMainQmlFile(QLatin1String("qml/DenunciaMetro/main.qml"));    
    viewer.showExpanded();

    return app->exec();
}
